package com.happut.ywgk.createTrigger;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class model {
	public String dbName;
	public String tableName;
	public List<String> keys;
//	public model(String dbName,String tableName,String keyName){
//		keys = new ArrayList<String>();
//		this.dbName = dbName;
//		this.tableName = tableName;
//		this.keys.add(keyName);
//	}
	
	public model(String dbName,String tableName,List<String> keys){
		keys = new ArrayList<String>();
		this.dbName = dbName;
		this.tableName = tableName;
		this.keys.addAll(keys);
	}
	
	public model(String dbName,String tableName,String... keyName){
		keys = new ArrayList<String>();
		this.dbName = dbName;
		this.tableName = tableName;
		this.keys.addAll(new ArrayList<String>(Arrays.asList(keyName)));
	}	
	
}
